package project.AnimalSoundClass;

public class Cat extends Animal {

    @Override
    void cry() {
        System.out.println("喵喵喵" + "\n" + getAnimalName());
    }

    @Override
    String getAnimalName() {
        return "小猫";
    }
}
